import axios from "~/axios.js";

//登录
export function login(username, password) {
  console.log("api方法参数", username, password);
  return axios.post("/admin/login", {
    username,
    password,
  });
}

//获取用户信息
export function getinfo() {
  return axios.post("/admin/getinfo");
}
